home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Magazine Back Issue Database
/
MMX PCs - PC Magazine Back-Issue Database - 02-1996-01-1997 (Volume 5 Number 1)(Ziff-Davis)(1997).ISO
/
pcmagcd.inf
< prev
next >
Wrap
INI File
|
1996-10-18
|
16KB
|
459 lines
;;*****************************************************************
;;* Copyright (c) 1995-1996 by Dataware Technologies, Inc., All Rights Reserved.
;;*
;;* pcmagcd.inf
;;*
;;* $History: PCMAGCD.INF $
;;*
;;* MODULE DESCRIPTION:
;;*
;;* This file is the installation script file for the PC Magazine
;;* CD written for the Installit for Windows program. This script
;;* file is used by Installit at installation time to perform the
;;* desired installation. It contains step-by-step instructions for
;;* installing the PC Magazine CD.
;;*
;;* LOCALS:
;;*
;;* SetupDisplay -sets up screen display for installation
;;* ShowWelcome -shows a welcome dialog to the user
;;* ShowDone -shows the user a completion dialog
;;* ComponentSelection -allows the user to choose installation components
;;* NoSelection -tells the user no components had been chosen to install
;;* InstallPCMagazineCD -installs the PC Magazine CD files
;;* InstallMSVideo -runs MS Video installation program
;;* InstallBackIssueDB -runs the back issue DB installation program
;;* InstallWinCIM -runs the WinCim installation program
;;* ShowGroups -shows new Windows desktop groups
;;* DDENonFatalErrorTrap -intercepts non-fatal DDE errors
;;* ByeNow -terminates the program installation
;;*
;;* GLOBALS:
;;*
;;* n/a
;;*
;;* RELEVANT DOCUMENTATION:
;;*
;;* n/a
;;*
;;* PORTABILITY ISSUES:
;;*
;;* n/a
;;*
;;* FILES USED:
;;*
;;* pcmagcd.pvd
;;*
;;****************************************************************/
DefineVariables
Text [ProductName] := PC Magazine CD Vol. 4 No. 2 ;;Program Manager Item Name
Text [ProductGroup] := PC Magazine CD ;;Program Manager Group Name
Text [VolumeNumber] := Vol. 4 No. 2
Text [LogoBitMap] := instbmp.bmp ;; store install bitmaps on CD 4.7.94
Text [IconCmdLine] := pcmagcd.exe ;;Primary executable
Text [IconFile] := PCMAGCD.ICO
Text [IconPath] ;; store install icon on CD 4.7.94
Text [InstDrive]
Text [ExePath]
Text [UninstallIconPath]
Text [UninstallIcon] := pcuninst.ico
Text [PCMAG] := PC Magazine CD software (Required)
Text [PartSize] :=
Text [CMPSEL] := PC Magazine Back-Issue Database (One year of PC
Text [CMPSEL2] := Magazine text in a searchable database)
Text [CmpSize] := 2,500kb
Text [MSVIDEO] := Microsoft Video for Windows Ver 1.1 Runtime files (Required
Text [MSVIDEO1] := for video portions). This option requires a Windows restart.
Text [MSVIDEO2] := NOTICE: Do not install if you are running under Windows 95 or if
Text [MSVIDEO3] := you have a later version of MS Video for Windows on your system.
Text [MSVidSize] := 2,500kb 3,327kb
Text [WinCim] := CompuServe access software
Text [WinCimSize] := X,XXXkb
Number [nInstallPCMagazineCD] := 1 ;;checked check-box from the start
Number [nInstallBackIssueDB] := 1 ;;acp -changed all check-boxes to 1 - 4.22.94
Number [nInstallMSVideo] := 0 ;;acp -changed all check-boxes to 1 - 4.22.94
Number [nWinCim] := 0
Number [nComponentFlag] := 0
Number [PleaseBox] := 0 ;;acp added for please select 1 text box - 4.22.94
Number [FinalOKBox] := 0 ;;acp added for final text box - 4.22.94
Number [WelcomeBox] := 0
Number [ComponentListBox] := 0
Number [Continue] := 1001
Number [Cancel] := 1111 ;;Cancel changed to 1111 - 4.27.94 ACP
Number [InstalledFlag] ;; used to create ini file
Text [FileVer]
EndDefineVariables
;;********************************************************************
;;
;; Beginning of program area
;;
;;********************************************************************
SetReplacementInquiry off ;; will not prompt to replace logo
Do SetupDisplay
Do ShowWelcome
[Point1]
Do ComponentSelection
If ( [nComponentFlag] = 0 )
Do NoSelection
GoTo [Point1]
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; This is the code to determine which ;;
;; components are loaded ;;
SetReplacementInquiry off ;;System will not ask; it will OVERWRITE ALL existing files
If [nInstallPCMagazineCD] <> 0 ;;Load PC Mag
Do InstallPCMagazineCD
EndIf
;;Load Computer Select
If [nInstallBackIssueDB] <> 0
Do InstallBackIssueDB
EndIf
If [nWinCim] <> 0 ;; if wincim selected
Do InstallWinCim
EndIf
;; Moved this to end because this installation asks user to restart Windows.
If [nInstallMSVideo] <> 0
Do InstallMSVideo
EndIf
Do ShowGroups
Do ShowDone
;;********************************************************************
;;
;; End of program area
;;
;;********************************************************************
;;********************************************************************
;;
;; Beginning of procedure area
;;
;;********************************************************************
;;****************************************************************
;;*
;;* SetupDisplay
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to setup the initial display for
;;* the program installation.
;;*
;;****************************************************************/
Procedure SetupDisplay
;; Setup logo and screen
SetDefaultBitmap off ;;gets rid of default bitmap
LoadBitMap 1 [LogoBitMap] ;;loads pcmag bitmap Barb
ShowBitMap 1 @xy(5,5)
SetTopLineTo "PC Magazine CD Setup"
;;SetBackgroundColor 255 255 255 255 255 255
ShowWindow Maximized
EndProcedure
;;*****************************************************************
;;*
;;* ShowWelcome
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to show a dialog box that displays
;;* a welcome message to the end user and allows the user to
;;* quit the installation.
;;*
;;****************************************************************/
Procedure ShowWelcome
DialogBox 220 130 UseHeader "Welcome" Returns [WelcomeBox]
Font "Helv" 8
cText @xy(10,14) 194 8 "Welcome to PC Magazine CD Volume 4 No. 2 installation."
lText @xy(10,22) 200 8 ""
lText @xy(10,30) 200 8 "This setup program will install the PC Magazine CD and all"
lText @xy(10,38) 200 8 "associated files on your hard disk. You will have the option"
lText @xy(10,46) 200 8 "of installing all files (recommended), or selecting portions"
lText @xy(10,54) 200 8 "of the software to install according to your needs."
lText @xy(10,62) 200 8 ""
lText @xy(10,70) 200 8 "To quit the Setup program at anytime, choose Cancel Setup."
lText @xy(10,78) 200 8 "Select the Continue button to proceed with the"
lText @xy(10,86) 200 8 "Installation."
DefPushButton @xy(21, 110) 58 14 "Continue" [Continue]
PushButton @xy(135, 110) 58 14 "Cancel Setup" [Cancel]
EndDialogBox
If [WelcomeBox] = [Cancel]
Do ByeNow ;;Quit install now
EndIf
EndProcedure
;;*****************************************************************
;;*
;;* ShowDone
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to show the user a dialog box that
;;* shows the program installation has been completed
;;* successfully.
;;*
;;****************************************************************/
Procedure ShowDone
DialogBox 220 130 UseHeader "PC Magazine CD" Returns [FinalOKBox]
Font "Helv" 8
lText @xy(25,24) 220 8 "PC Magazine CD Volume 4, Number 2 Setup is"
lText @xy(25,32) 220 8 "complete. Enjoy the disc, and keep watch for"
lText @xy(25,40) 220 8 "Volume 4, Number 3."
DefPushButton @xy(83, 110) 58 14 "Exit" [Continue];;acp 4.22.94
EndDialogBox
UnLoadBitmap 1
EndProcedure
;;*****************************************************************
;;*
;;* ComponentSelection
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to present a dialog to the user that
;;* allows the selection of the desired components to install.
;;* If the user hits the 'Cancel' button on the dialog, the
;;* installation will be terminated.
;;*
;;****************************************************************/
Procedure ComponentSelection
DialogBox 260 165 UseHeader "PC Magazine CD Components" Returns [ComponentListBox]
Font "Helv" 8
lText @xy(10,4) 245 8 "The following is a list of components which will be installed on your hard"
lText @xy(10,12) 245 8 "disk. You may de-select a particular component if you choose not to install"
lText @xy(10,20) 245 8 "it. However, portions of this CD require that support files be installed."
lText @xy(10,28) 245 8 "Therefore, we recommend that you install all elements to get the most out"
lText @xy(10,36) 245 8 "of this edition of PC Magazine CD."
CheckBox @xy(10,50) 8 12 "" Uses [nInstallPCMagazineCD]
lText @xy(25,52) 175 8 [PCMAG]
rText @xy(210,50) 40 8 [PartSize]
CheckBox @xy(10,62) 8 12 "" Uses [nInstallBackIssueDB]
lText @xy(25,64) 175 8 [CMPSEL]
lText @xy(25,74) 175 8 [CMPSEL2]
rText @xy(210,74) 40 8 [CmpSize]
CheckBox @xy(10,86) 8 12 "" Uses [nInstallMSVideo]
lText @xy(25,88)225 8 [MSVIDEO]
lText @xy(25,98)225 8 [MSVIDEO1]
lText @xy(25,108)225 8 [MSVIDEO2]
lText @xy(25,118)225 8 [MSVIDEO3]
DefPushButton @xy(50, 144) 60 15 "Continue" [Continue] ;;1001
PushButton @xy(150, 144) 60 15 "Cancel Setup" [Cancel] ;;1111 - changed 4.27.94 ACP
EndDialogBox
[nComponentFlag] := [nInstallPCMagazineCD] .or. [nInstallBackIssueDB] .or. [nInstallMSVideo]
If [ComponentListBox] = [Cancel]
Do ByeNow ;;Quit install now
EndIf
EndProcedure
;;*****************************************************************
;;*
;;* NoSelection
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to tell the user through a dialog
;;* box that no components have been chosen to install. If
;;* the user hits the 'Continue' button, the user gets another
;;* opportunity to select components to install. If the user
;;* hits the 'Cancel' button, the installation will terminate.
;;*
;;****************************************************************/
Procedure NoSelection
DialogBox 220 130 UseHeader "PC Magazine CD" Returns [PleaseBox]
Font "Helv" 8
cText @xy(0,34) 220 8 "Please select at least 1 option.";;changed to 0,34 - ACP 4.27.94
DefPushButton @xy(21, 110) 58 14 "Continue" [Continue]
PushButton @xy(135, 110) 58 14 "Cancel Setup" [Cancel] ;;1111
EndDialogBox
If [PleaseBox] = [Cancel]
Do ByeNow ;;Quit install now
EndIf
EndProcedure
;;*****************************************************************
;;*
;;* InstallPCMagazineCD
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to install the main PC Magazine
;;* comnponents to the installation drive.
;;*
;;****************************************************************/
Procedure InstallPCMagazineCD
[nComponentFlag] := 1 ;;flag set to ensure at least one choice was selected
;;[FileVer] := FileVersionOf [WindowsSystemDirectory]\ctl3dv2.dll
;;if [FileVer] < 00002.00000.00005.00000
;; QueFileGroup 1 to [WindowsSystemDirectory] IfNewer NoInquiry
;; GetQuedFiles
;;Endif
[ExePath] := [InstallFromDirectory]\[IconCmdLine]
[IconPath] := [InstallFromDirectory]\[IconFile];; added for test
[UninstallIconPath] := [InstallFromDirectory]\[UninstallIcon]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Use ProgramManagerDDe to create a group ;;
;; and add a simple icon feature ;;
ProgramManagerDDe
CreateGroup([ProductGroup],1)
AddItem([ExePath],[ProductName],[IconPath])
;; added icon for readme file
AddItem([WindowsDirectory]\write.exe [InstallFromDrive]:\readme.wri,[VolumeNumber] Readme)
;; AddItem([InstallFromDrive]:\uninst\uninst.exe, Remove [VolumeNumber], [UninstallIconPath])
ExitProgman(1)
EndProgramManagerDDE
[InstalledFlag] := 0
EndProcedure
;;*****************************************************************
;;*
;;* InstallMSVideo
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to call the Video for Windows
;;* installation program.
;;*
;;****************************************************************/
Procedure InstallMSVideo
[nComponentFlag] := 1
SetExitConfirmationPrompt off
Run [InstallFromDrive]:\VFW11\setup.exe ;;from CD root Barb
EndProcedure
;;*****************************************************************
;;*
;;* InstallBackIssueDB
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to call the back issue database
;;* installation program.
;;*
;;****************************************************************/
Procedure InstallBackIssueDB
[nComponentFlag] := 1
;;1. InstDrive = [InstDrive] this is blank - gets erased at some point - [installFromDrive] works.
SetMouseCursor Arrow
Run [InstallFromDrive]:\setupw.exe ;;from CD root Barb
EndProcedure
;;*****************************************************************
;;*
;;* InstallWinCim
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to call the WinCim installation
;;* program.
;;*
;;****************************************************************/
Procedure InstallWinCim
[nComponentFlag] := 1
Run [InstallFromDrive]:\wincim\wcinst.exe
EndProcedure
;;*****************************************************************
;;*
;;* ShowGroups
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to refresh the display of the
;;* Windows groups so the new groups this program created
;;* will be showing.
;;*
;;****************************************************************/
Procedure ShowGroups
ProgramManagerDDE
ShowGroup([ProductGroup], 2)
ShowGroup([ProductGroup], 1)
EndProgramManagerDDE
EndProcedure
;;*****************************************************************
;;*
;;* DDENonFatalErrorTrap
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to intercept the non-fatal errors
;;* that may occur when executing the ProgramManagerDDE functions:
;;* such as creating Windows groups, deleting groups, showing
;;* groups, and adding group items. The non-fatal errors that can
;;* occur are as follows:
;;* Possible Text Error Codes Are:
;;* ddeExec%s failed (NOTE: the "%s" is replaced by error types)
;;* ddeInitiate failed
;;* pmAddItem failed
;;* pmClose failed
;;* pmCreateGroup failed
;;*
;;****************************************************************/
Procedure DDENonFatalErrorTrap
[Number1] := PositionOf "PMAddItem" in DDENonFatalError
If [Number1] > 0
Dialog
NonFatal error in AddItem occurred
Error Text : DDENonFatalError
EndDialog
EndIf
[Number1] := PositionOf "PMDeleteItem" in DDENonFatalError
If [Number1] > 0
Dialog
NonFatal error in DeleteItem occurred
Error Text : DDENonFatalError
EndDialog
EndIf
EndProcedure
;;*****************************************************************
;;*
;;* ByeNow
;;*
;;* DESCRIPTION:
;;*
;;* This procedure is used to tell the user that the
;;* installation program has terminated, and to end the
;;* installation.
;;*
;;****************************************************************/
Procedure ByeNow
DialogBox 220 130 UseHeader "PC Magazine CD" Returns [FinalOKBox] ;;new Dialog 4.27
Font "Helv" 8
cText @xy(0,24) 220 8 "Installation has terminated. Please press Exit."
DefPushButton @xy(83, 110) 58 14 "Exit" [Continue];;acp 4.22.94
EndDialogBox
UnLoadBitmap 1
SoLong Quietly
EndProcedure
;;********************************************************************
;;
;; End of procedure area
;;
;;********************************************************************
EndScript ;;end of program